from django.conf.urls.defaults import *
from hominin.specimens.models import Fossil

fossil_dict = {
	'queryset': Fossil.objects.all(),
}

urlpatterns = patterns('',
	(r'^$', 'django.views.generic.list_detail.object_list', fossil_dict),
	(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', fossil_dict),
	(r'^(?P<slug>[-\w]+)/$', 'django.views.generic.list_detail.object_detail', dict(fossil_dict, slug_field='slug')),
)
